jade.content.abs
Class AbsHelper

java.lang.Object
  |
  +--jade.content.abs.AbsHelper

public class AbsHelper
extends java.lang.Object

Author:
Federico Bergenti - Universita` di Parma

Constructor Summary
AbsHelper()
           
 
Method Summary
static AbsContentElementList fromContentElementListObject(List obj, FullOntology onto)
          Converts to an abstract descriptor using the specified ontology.
static AbsAID fromObject(AID obj, FullOntology onto)
          Converts an AID into a AbsAggregate using the specified ontology.
static AbsAggregate fromObject(Iterator obj, FullOntology onto)
          Converts an Iterator into a AbsAggregate using the specified ontology.
static AbsAggregate fromObject(List obj, FullOntology onto)
          Converts a List into a AbsAggregate using the specified ontology.
static AID toAIDObject(AbsAID aid, FullOntology onto)
          Converts to an AID using the specified ontology.
static List toListObject(AbsAggregate aggregate, FullOntology onto)
          Converts to a List using the specified ontology.
static List toListObject(AbsContentElementList abs, FullOntology onto)
          Converts to a List using a specified ontology.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbsHelper

public AbsHelper()
Method Detail

toListObject

public static List toListObject(AbsAggregate aggregate,
                                FullOntology onto)
                         throws OntologyException
Converts to a List using the specified ontology.
Parameters:
onto - the ontology
Returns:
the list
Throws:
OntologyException -  

fromObject

public static AbsAggregate fromObject(List obj,
                                      FullOntology onto)
                               throws OntologyException
Converts a List into a AbsAggregate using the specified ontology.
Parameters:
obj - the List
onto - the ontology.
Returns:
the abstract descriptor.
Throws:
OntologyException -  

fromObject

public static AbsAggregate fromObject(Iterator obj,
                                      FullOntology onto)
                               throws OntologyException
Converts an Iterator into a AbsAggregate using the specified ontology.
Parameters:
obj - the Iterator
onto - the ontology.
Returns:
the abstract descriptor.
Throws:
OntologyException -  

toAIDObject

public static AID toAIDObject(AbsAID aid,
                              FullOntology onto)
                       throws OntologyException
Converts to an AID using the specified ontology.
Parameters:
onto - the ontology
Returns:
the AID
Throws:
OntologyException -  

fromObject

public static AbsAID fromObject(AID obj,
                                FullOntology onto)
                         throws OntologyException
Converts an AID into a AbsAggregate using the specified ontology.
Parameters:
obj - the AID
onto - the ontology.
Returns:
the abstract descriptor.
Throws:
OntologyException -  

toListObject

public static List toListObject(AbsContentElementList abs,
                                FullOntology onto)
                         throws OntologyException
Converts to a List using a specified ontology.
Parameters:
onto - the ontology
Returns:
the List
Throws:
OntologyException -  

fromContentElementListObject

public static AbsContentElementList fromContentElementListObject(List obj,
                                                                 FullOntology onto)
                                                          throws OntologyException
Converts to an abstract descriptor using the specified ontology.
Parameters:
obj - the List to convert.
onto - the ontology to use for the conversion.
Returns:
the abstract descriptor.
Throws:
OntologyException -